package unseen;

import javax.annotation.processing.SupportedSourceVersion;

public class test1 {
    public static void main(String[] args) {

    }
}
abstract class Animal{

    public int age;
    public String name;
    public Animal(String name,int age){
        this.name=name;
        this.age=age;
    }
    abstract public void eat();
}
class Dog extends Animal{
    public Dog(String name,int age){
        super(name,age);
    }
    public void eat(){
        System.out.println("在吃狗粮");
    }
}
interface Irunning{
    void run();
}

class Cat implements Irunning{
    public void run(){
        System.out.println("在奔跑");
    }
}